player2

  • function
 

Informs Bookshelf.js that the player2 property will be a Player model with an id that matches the player2Id specified in the query.

team.player2()

Informs Bookshelf.js that the player2 property will be a Player model with an id that matches the player2Id specified in the query.